#/bin/bash

source /etc/profile

path=$(cd $(dirname $0);pwd)
if [ $# -eq 1 ]; then
	day=$1
else
	day=`date -d "-2 days" +"%Y%m%d"`
fi
rm -rf ${path}/*/${day}